<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body onload="onLoad()">
<div style="height: 1600px;background: green;"></div>
<a href="index7.html">afafaf</a>
</body>
<script>
    var a = 1
    function onLoad() {
        alert("a = " + a)
        a++
    }
</script>
</html>